/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

/**
 * 新零售大屏
 *  */
import request from "../utils/request";

/**
 * 新零售大屏，获取顶部实时数据
 * */
export async function getTopRealTimeData(params) {
  return request("/Api/Statistics/getTopStat", {
    method: "POST",
    body: params,
  });
}
/**
 * 新零售大屏，获取实时图表数据
 * */
export async function getRealTimeChart(params) {
  return request("/Api/Statistics/getTimelineStat", {
    method: "POST",
    body: params,
  });
}

/**
 * 新零售大屏，每日入库量
 * */
export async function getInStorageNum(params) {
  return request("/Api/Statistics/getStorageInNumSevenDays", {
    method: "POST",
    body: params,
  });
}
/**
 * 新零售大屏，每日寄件量
 * */
export async function getOutStorageNum(params) {
  return request("/Api/Statistics/getExpressStatSevenDays", {
    method: "POST",
    body: params,
  });
}
/**
 * 新零售大屏，每日出库率
 * */
export async function getOutRate(params) {
  return request("/Api/Statistics/getStorageOutRateSevenDays", {
    method: "POST",
    body: params,
  });
}
/**
 * 新零售大屏，出库率(3日)排名
 * */
export async function getOutRateRange(params) {
  return request("/Api/Statistics/getStorageOutRateRankYesterday", {
    method: "POST",
    body: params,
  });
}
/**
 * 新零售大屏，昨日入库品牌占比
 * */
export async function getBrandRateRange(params) {
  return request("/Api/Statistics/getStorageInBrandRatioYesterday", {
    method: "POST",
    body: params,
  });
}
/**
 * 新零售大屏，昨日入库量排名
 * */
export async function getStorageInNumRankYesterday(params) {
  return request("/Api/Statistics/getStorageInNumRankYesterday", {
    method: "POST",
    body: params,
  });
}
